Passthrough: fix iommu_use_hap_pt() to use hap_enabled()
authorTim Deegan <tim@xen.org>
Tue, 23 Aug 2011 09:54:27 +0000 (10:54 +0100)
committerTim Deegan <tim@xen.org>
Tue, 23 Aug 2011 09:54:27 +0000 (10:54 +0100)
In line with 22924:86000076dcee, paging_mode_hap(d) shouldn't be
used in HAP internals that are called during HAP setup.

Signed-off-by: Tim Deegan <tim@xen.org>
xen/include/xen/iommu.h

index ade8690417b9331a66657ed92e60f83616d513df..459c6ceb4d6cf67f2e040f7e554c8a9fdefe0b84 100644 (file)
@@ -35,7 +35,7 @@ extern bool_t iommu_debug;
 extern bool_t amd_iommu_perdev_intremap;
 
 /* Does this domain have a P2M table we can use as its IOMMU pagetable? */
-#define iommu_use_hap_pt(d) (paging_mode_hap(d) && iommu_hap_pt_share)
+#define iommu_use_hap_pt(d) (hap_enabled(d) && iommu_hap_pt_share)
 
 extern struct rangeset *mmio_ro_ranges;